var DAO = require('./DAO')
var joinDAO = {
    insertJoin:function(joins,callback){
        DAO('insert into joins(joinusername,joinaddress,jointelephone,joinarea,userid) values(?,?,?,?,?)',[joins.joinusername,joins.joinaddress,joins.jointelephone,joins.joinarea,joins.userid],function(err,results){
            if(err){
              callback(err,null)
            }else{
              callback(null,results)
            }
        })
      },
}
module.exports = joinDAO